﻿<phone:PhoneApplicationPage 
    x:Class="cameraforhtml.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:src="clr-namespace:cameraforhtml"
    mc:Ignorable="d" d:DesignWidth="728" d:DesignHeight="480"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    shell:SystemTray.IsVisible="True">
    
    <Canvas MouseLeftButtonDown="Canvas_MouseLeftButtonDown">
        <!-- Background -->
        <Image Source="/cameraforhtml;component/canon.jpg" Canvas.Left="0" Canvas.Top="10" Height="456" Width="728"></Image>
        <!-- HTML browser -->
        <phone:WebBrowser Name="webBrowser" Background="Transparent" IsScriptEnabled="True" Height="300" Width="400" Canvas.Left="79" Canvas.Top="97" />
        <!-- Native Camera -->
        <src:CameraViewfinder x:Name="CameraViewfinder" Width="400" Height="300" Canvas.Left="79" Canvas.Top="97" />
    </Canvas>

</phone:PhoneApplicationPage>